const order = {
	state: {
		pendingOrder: [], // 待定订单
	},
	mutations: {
		SET_PD_ORDER(state, val) {
			state.pendingOrder = val;
		},
		SET_ITEM_BUYNUM(state, {
			_id,
			buy_num
		}) {
			state.pendingOrder.forEach(item => {
				if (item._id == _id) {
					item.buy_num = buy_num
				}
			})
		}
	},
	actions: {

	}
}

export default order
